package com.bdqn.t296.noso.service.Imp;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bdqn.t296.noso.entity.*;
import com.bdqn.t296.noso.mapper.RegisterMapper;
import com.bdqn.t296.noso.service.RegisterService;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class RegisterServicelmp implements RegisterService {

    @Resource
   private RegisterMapper registerMapper;


    @Override
    public IPage<Register> selectUser(Page<Register> page, @Param(value ="register")Register register) {
        return registerMapper.selectUser(page,register);
    }

    @Override
    public int addRegister(Register register) {
        return registerMapper.addRegister(register);
    }


    @Override
    public List<Doctor> selDoctor(Doctor doctor) {
        return registerMapper.selDoctor(doctor);
    }

    @Override
    public List<Departments> selDepartment(Departments departments) {
        return registerMapper.selDepartment(departments);
    }

    @Override
    public List<Bed> selBed(Bed bed) {
        return registerMapper.selBed(bed);
    }

    @Override
    public List<Moneytype> selDis() {
        return registerMapper.selDis();
    }

    @Override
    public List<Register> selRegister(Register register) {
        return registerMapper.selRegister(register);
    }

    @Override
    public int updZ(Register register) {
        return registerMapper.updZ(register);
    }

    @Override
    public int updKe(Register register) {
        return registerMapper.updKe(register);
    }

    @Override
    public int updBed(Register register) {
        return registerMapper.updBed(register);
    }


}
